home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / the_guarded_garden.swf / scripts / frame_1 / DoAction.as
Text File  |  2011-01-13  |  12KB  |  332 lines

  1. var ┬º\x01┬º = 938;
  2. while(true)
  3. {
  4.    if(eval("\x01") != 938)
  5.    {
  6.       if(eval("\x01") != 646)
  7.       {
  8.          if(eval("\x01") != 813)
  9.          {
  10.             if(eval("\x01") != 362)
  11.             {
  12.                if(eval("\x01") != 350)
  13.                {
  14.                   if(eval("\x01") == 150)
  15.                   {
  16.                      set("\x01",eval("\x01") + 291);
  17.                      ┬º┬ºpush(┬º┬ºpop() & ┬º┬ºpop());
  18.                      break;
  19.                   }
  20.                   if(eval("\x01") == 931)
  21.                   {
  22.                      set("\x01",eval("\x01") - 407);
  23.                      continue;
  24.                      funcHITBOX = function(arEvent, arAction)
  25.                      {
  26.                         lString = "javascript: _hbLink (\'/flash/" + arEvent.toLowerCase() + "/" + arAction.toLowerCase() + "\',\'left\',\'0,0,0,0\')";
  27.                         getURL(lString,"");
  28.                      };
  29.                   }
  30.                   if(eval("\x01") == 946)
  31.                   {
  32.                      set("\x01",eval("\x01") - 117);
  33.                      ┬º┬ºpush(true);
  34.                      continue;
  35.                   }
  36.                   if(eval("\x01") == 277)
  37.                   {
  38.                      set("\x01",eval("\x01") + 369);
  39.                      ┬º┬ºpush(true);
  40.                      continue;
  41.                   }
  42.                   if(eval("\x01") == 54)
  43.                   {
  44.                      set("\x01",eval("\x01") + 470);
  45.                      continue;
  46.                   }
  47.                   if(eval("\x01") == 552)
  48.                   {
  49.                      set("\x01",eval("\x01") - 94);
  50.                      continue;
  51.                   }
  52.                }
  53.                set("\x01",eval("\x01") - 200);
  54.                if(┬º┬ºpop())
  55.                {
  56.                   set("\x01",eval("\x01") + 291);
  57.                }
  58.                continue;
  59.                if(eval("\x01") != 62)
  60.                {
  61.                   if(eval("\x01") == 379)
  62.                   {
  63.                      set("\x01",eval("\x01") + 153);
  64.                   }
  65.                   else if(eval("\x01") == 345)
  66.                   {
  67.                      set("\x01",eval("\x01") + 458);
  68.                      toggleHighQuality();
  69.                      throw ┬º┬ºpop();
  70.                   }
  71.                   else
  72.                   {
  73.                      if(eval("\x01") == 205)
  74.                      {
  75.                         set("\x01",eval("\x01") + 174);
  76.                         continue;
  77.                      }
  78.                      if(eval("\x01") == 631)
  79.                      {
  80.                         set("\x01",eval("\x01") + 315);
  81.                         continue;
  82.                      }
  83.                      if(eval("\x01") == 588)
  84.                      {
  85.                         set("\x01",eval("\x01") - 36);
  86.                         break;
  87.                      }
  88.                      if(eval("\x01") == 520)
  89.                      {
  90.                         set("\x01",eval("\x01") - 92);
  91.                         if(┬º┬ºpop())
  92.                         {
  93.                            set("\x01",eval("\x01") + 216);
  94.                         }
  95.                         continue;
  96.                      }
  97.                      if(eval("\x01") == 577)
  98.                      {
  99.                         set("\x01",eval("\x01") - 300);
  100.                         continue;
  101.                      }
  102.                      if(eval("\x01") == 803)
  103.                      {
  104.                         set("\x01",eval("\x01") - 127);
  105.                         continue;
  106.                      }
  107.                      if(eval("\x01") == 524)
  108.                      {
  109.                         set("\x01",eval("\x01") - 306);
  110.                         ┬º┬ºpush(true);
  111.                         continue;
  112.                      }
  113.                      if(eval("\x01") == 173)
  114.                      {
  115.                         set("\x01",eval("\x01") + 104);
  116.                         continue;
  117.                      }
  118.                      if(eval("\x01") == 559)
  119.                      {
  120.                         set("\x01",eval("\x01") + 254);
  121.                         continue;
  122.                      }
  123.                      if(eval("\x01") == 820)
  124.                      {
  125.                         set("\x01",eval("\x01") - 766);
  126.                         ┬º┬ºpush(random(┬º┬ºpop()));
  127.                         break;
  128.                      }
  129.                      if(eval("\x01") == 532)
  130.                      {
  131.                         set("\x01",eval("\x01") - 532);
  132.                         break;
  133.                      }
  134.                      if(eval("\x01") == 676)
  135.                      {
  136.                         set("\x01",eval("\x01") + 319);
  137.                         ┬º┬ºpush(true);
  138.                         continue;
  139.                      }
  140.                      if(eval("\x01") == 644)
  141.                      {
  142.                         set("\x01",eval("\x01") + 182);
  143.                         continue;
  144.                      }
  145.                      if(eval("\x01") == 423)
  146.                      {
  147.                         set("\x01",eval("\x01") + 523);
  148.                         continue;
  149.                      }
  150.                      if(eval("\x01") == 0)
  151.                      {
  152.                         set("\x01",eval("\x01") + 62);
  153.                         break;
  154.                      }
  155.                      if(eval("\x01") == 747)
  156.                      {
  157.                         set("\x01",eval("\x01") + 79);
  158.                         continue;
  159.                      }
  160.                      if(eval("\x01") == 458)
  161.                      {
  162.                         set("\x01",eval("\x01") + 62);
  163.                         ┬º┬ºpush(true);
  164.                         continue;
  165.                      }
  166.                      if(eval("\x01") == 531)
  167.                      {
  168.                         set("\x01",eval("\x01") - 186);
  169.                         if(┬º┬ºpop())
  170.                         {
  171.                            set("\x01",eval("\x01") + 458);
  172.                         }
  173.                         continue;
  174.                      }
  175.                      if(eval("\x01") == 995)
  176.                      {
  177.                         set("\x01",eval("\x01") - 185);
  178.                         if(┬º┬ºpop())
  179.                         {
  180.                            set("\x01",eval("\x01") - 387);
  181.                         }
  182.                         continue;
  183.                      }
  184.                      if(eval("\x01") == 810)
  185.                      {
  186.                         set("\x01",eval("\x01") - 387);
  187.                         toggleHighQuality();
  188.                         toggleHighQuality();
  189.                         return delete ┬º┬ºpop();
  190.                      }
  191.                      if(eval("\x01") == 276)
  192.                      {
  193.                         set("\x01",eval("\x01") - 87);
  194.                         if(┬º┬ºpop())
  195.                         {
  196.                            set("\x01",eval("\x01") - 16);
  197.                         }
  198.                         continue;
  199.                      }
  200.                      if(eval("\x01") == 939)
  201.                      {
  202.                         set("\x01",eval("\x01") - 263);
  203.                         continue;
  204.                      }
  205.                      if(eval("\x01") == 829)
  206.                      {
  207.                         set("\x01",eval("\x01") - 9);
  208.                         if(┬º┬ºpop())
  209.                         {
  210.                            set("\x01",eval("\x01") - 766);
  211.                         }
  212.                         continue;
  213.                      }
  214.                      if(eval("\x01") == 826)
  215.                      {
  216.                         set("\x01",eval("\x01") - 295);
  217.                         ┬º┬ºpush(true);
  218.                         continue;
  219.                      }
  220.                      if(eval("\x01") == 218)
  221.                      {
  222.                         set("\x01",eval("\x01") - 218);
  223.                         if(┬º┬ºpop())
  224.                         {
  225.                            set("\x01",eval("\x01") + 62);
  226.                         }
  227.                         continue;
  228.                      }
  229.                      if(eval("\x01") == 189)
  230.                      {
  231.                         set("\x01",eval("\x01") - 16);
  232.                         tellTarget(┬º┬ºpop() & ┬º┬ºpop())
  233.                         {
  234.                            nextFrame();
  235.                            break;
  236.                         }
  237.                      }
  238.                      if(eval("\x01") != 428)
  239.                      {
  240.                         if(eval("\x01") == 811)
  241.                         {
  242.                            set("\x01",eval("\x01") - 353);
  243.                         }
  244.                         else
  245.                         {
  246.                            if(eval("\x01") != 441)
  247.                            {
  248.                               break;
  249.                            }
  250.                            set("\x01",eval("\x01") + 372);
  251.                         }
  252.                         continue;
  253.                      }
  254.                      set("\x01",eval("\x01") + 216);
  255.                      Map.attachMovie("dog","Dog" + dogIndex,┬º┬ºpop() + ┬º┬ºpop() + dogIndex);
  256.                      theDog = Map["Dog" + dogIndex];
  257.                      dogsActive.push(theDog);
  258.                      theDog._x = _loc3_ * tileWidth - 25;
  259.                      theDog._y = _loc2_ * tileHeight - 25;
  260.                      theDog.myIndex = dogIndex;
  261.                      theDog.currentTile = _loc4_;
  262.                      theDog.currentRow = _loc2_;
  263.                      theDog.currentColumn = _loc3_;
  264.                      theDog.currentDir = "Down";
  265.                      theDog.chase = false;
  266.                      theDog.onEnterFrame = function()
  267.                      {
  268.                         if(gameInPlay)
  269.                         {
  270.                            this.lastDir = this.currentDir;
  271.                            this.lastTile = this.currentTile;
  272.                            this.currentRow = Math.ceil(this._y / tileHeight);
  273.                            this.currentColumn = Math.ceil(this._x / tileWidth);
  274.                            this.currentTile = whatNumber(this.currentColumn,this.currentRow);
  275.                            var _loc2_ = Map.Player.currentRow - this.currentRow;
  276.                            var _loc3_ = Map.Player.currentColumn - this.currentColumn;
  277.                            if(Math.abs(_loc3_) <= dogChaseRadius && Math.abs(_loc2_) <= dogChaseRadius)
  278.                            {
  279.                               this.chase = true;
  280.                            }
  281.                            else
  282.                            {
  283.                               this.chase = false;
  284.                            }
  285.                            if(this.chase)
  286.                            {
  287.                               this.speed = dogChaseSpeed;
  288.                               if(this.currentTile != this.lastTile)
  289.                               {
  290.                                  this.currentDir = chooseOpponentDir(this);
  291.                               }
  292.                            }
  293.                            else
  294.                            {
  295.                               this.speed = dogSpeed;
  296.                            }
  297.                            moveClip(this);
  298.                            this.swapDepths(this.currentRow * 100 + dogDepth + this.myIndex);
  299.                         }
  300.                      };
  301.                      if(dogIndex < dogIndexMax)
  302.                      {
  303.                         dogIndex++;
  304.                      }
  305.                      else
  306.                      {
  307.                         dogIndex = 1;
  308.                      }
  309.                   }
  310.                   stop();
  311.                   getURL("FSCommand:allowscale",false);
  312.                }
  313.             }
  314.             set("\x01",eval("\x01") - 157);
  315.             continue;
  316.             set("\x01",eval("\x01") + 143);
  317.          }
  318.          set("\x01",eval("\x01") - 537);
  319.          ┬º┬ºpush(true);
  320.          continue;
  321.       }
  322.       set("\x01",eval("\x01") - 58);
  323.       if(┬º┬ºpop())
  324.       {
  325.          set("\x01",eval("\x01") - 36);
  326.       }
  327.       continue;
  328.    }
  329.    set("\x01",eval("\x01") - 588);
  330.    ┬º┬ºpush(true);
  331. }
  332.